// Fill out your copyright notice in the Description page of Project Settings.

#include "WorldEntityMeta.h"

FWorldEntityMeta::FWorldEntityMeta(const std::string& name, const std::shared_ptr<FWorldEntityMeta>& parent)
	: ClassName(name)
	, Parent(parent)
{}

bool FWorldEntityMeta::IsA(const FWorldEntityMeta& other) const
{
	for (FWorldEntityMetaUpIterator it(*this); !it.IsDone(); it.Next())
	{
		if (&(*it) == &other)
		{
			return true;
		}
	}
	return false;
}
